home *** CD-ROM | disk | FTP | other *** search
/ VRML 2.0 Sourcebook (2nd Edition) / VRML 2.0 Sourcebook CD [md5 fed90f4f9c39d5a60d477058775c7e21].iso / book / unix / ch10 / 10fig07.wrl < prev    next >
Text File  |  1996-09-22  |  1KB  |  60 lines

  1. #VRML V2.0 utf8
  2. # The VRML 2.0 Sourcebook
  3. # Copyright 1997 By
  4. # Andrea L. Ames, David R. Nadeau, and John L. Moreland
  5. Group {
  6.     children [
  7.     # Dark gray light bulb hanging wire
  8.         Shape {
  9.             appearance Appearance {
  10.                 material Material {
  11.                     diffuseColor 0.4 0.4 0.4
  12.                 }
  13.             }
  14.             geometry Cylinder {
  15.                 radius 0.05
  16.                 height 2.0
  17.             }
  18.         },
  19.     # Yellowish light bulb socket
  20.         Transform {
  21.             translation 0.0 -1.0 0.0
  22.             children Shape {
  23.                 appearance Appearance {
  24.                     material Material {
  25.                     diffuseColor 1.0 1.0 0.4
  26.                     }
  27.                 }
  28.                 geometry Sphere { radius 0.5 }
  29.             }
  30.         },
  31.         Transform {
  32.             translation 0.0 -1.5 0.0
  33.             children Shape {
  34.                 appearance Appearance {
  35.                     material Material {
  36.                         diffuseColor 1.0 1.0 0.4
  37.                     }
  38.                 }
  39.                 geometry Cylinder {
  40.                     radius 0.5
  41.                     height 1.0
  42.                 }
  43.             }
  44.         },
  45.     # White light bulb
  46.         Transform {
  47.             translation 0.0 -2.95 0.0
  48.             children Shape {
  49.                 appearance Appearance {
  50.                     material Material {
  51.                         diffuseColor  1.0 1.0 1.0
  52.                         emissiveColor 1.0 1.0 1.0
  53.                     }
  54.                 }
  55.                 geometry Sphere { }
  56.             }
  57.         }
  58.     ]
  59. }
  60.